<template>
  <div class="box fs30">
    <p :style="boxStyle.titleStyle"><i class="picon" :style="boxStyle.piconStyle"/>{{title}}</p>
    <span :style="boxStyle.numStyle" class="fs40">{{!num&&num!==0?'暂无数据':num}}</span>
  </div>
</template>

<script>
export default {
  props: {
    title:'',
    num:null,
    boxStyle: {
      default: () => {
        return {
            piconStyle:null,
            titleStyle:null,
            numStyle:null,
        };
      },
    },
  },
  data() {
    return {};
  },
  mounted() {},
};
</script>
<style scoped lang="scss">
@import "../../../styles/index.scss";
.box {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: #fff;
  p {
    display: flex;
    align-items: center;
    margin: 0;
    margin-bottom: 2%;
    .picon {
      margin-right: 6px;
      display: block;
      width: 20px;
      height: 20px;
      border-radius: 5px;
    }
  }
  span {
    // padding: 20px;
    border-radius: 20px;
    font-weight: 700;
  }
}
</style>
